package com.kate.mall.bff.wx.controller;

import com.kate.mall.bff.wx.service.HomeService;
import com.kate.mall.bff.wx.service.HomeService2;
import com.kate.mall.bff.wx.service.HomeService3;
import com.kate.mall.common.utils.R;
import com.kate.mall.log.annotation.LogAnnotation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2022/12/16 下午2:08
 */
@RestController
@RequestMapping("/wx/home")
@Slf4j
public class HomeController {

    @Resource
    private HomeService3 indexService;
    @GetMapping("/index")
    @LogAnnotation(module = "微信小程序bff")
    public R index(){
        log.trace("进入index.....");
        return indexService.list();
    }

}
